﻿using System.ComponentModel;
using System.ComponentModel.DataAnnotations;

namespace Web.Models
{
    public enum OptionType
    {
        字符串 = 1,
        单选 = 2,
        多选 = 3
    }
    public class Option : Entity
    {
        [Key]
        public int Id { get; set; }

        [MaxLength(50)]
        [DisplayName("参数名")]
        [Required]
        public string ParamName { get; set; }

        [MaxLength(200)]
        [DisplayName("参数值")]
        public string ParamValue { get; set; }

        [Required]
        [DisplayName("类型")]
        public OptionType Type { get; set; }

        [MaxLength(255)]
        [DisplayName("描述")]
        public string ParamDescription { get; set; }
    }
}
